package com.meixiang.entity.fund;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by xyj on 2016/6/16.
 */
public class FundIndexResult extends FundBaseListResult {
    private List<FundSiftBean> fund_sift;

    public List<FundSiftBean> getFund_sift() {
        return fund_sift;
    }

    public void setFund_sift(List<FundSiftBean> fund_sift) {
        this.fund_sift = fund_sift;
    }

    /**
     * 基金列表 --- 精品推荐
     * Created by xyj on 2016/6/7.
     */
    public class FundSiftBean implements Parcelable {

        private String fund_id;
        private String fund_name;
        private String cnt;
        private String rate;
        private String rate_desc;
        private String sift_title;
        private String sift_desc;

        protected FundSiftBean(Parcel in) {
            fund_id = in.readString();
            fund_name = in.readString();
            cnt = in.readString();
            rate = in.readString();
            rate_desc = in.readString();
            sift_title = in.readString();
            sift_desc = in.readString();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(fund_id);
            dest.writeString(fund_name);
            dest.writeString(cnt);
            dest.writeString(rate);
            dest.writeString(rate_desc);
            dest.writeString(sift_title);
            dest.writeString(sift_desc);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public final Creator<FundSiftBean> CREATOR = new Creator<FundSiftBean>() {
            @Override
            public FundSiftBean createFromParcel(Parcel in) {
                return new FundSiftBean(in);
            }

            @Override
            public FundSiftBean[] newArray(int size) {
                return new FundSiftBean[size];
            }
        };

        public String getSift_desc() {
            return sift_desc == null ? "" : sift_desc;
        }

        public void setSift_desc(String sift_desc) {
            this.sift_desc = sift_desc;
        }

        public String getFund_id() {
            return fund_id == null ? "" : fund_id;
        }

        public void setFund_id(String fund_id) {
            this.fund_id = fund_id;
        }

        public String getFund_name() {
            return fund_name == null ? "" : fund_name;
        }

        public void setFund_name(String fund_name) {
            this.fund_name = fund_name;
        }

        public String getCnt() {
            return cnt == null ? "" : cnt;
        }

        public void setCnt(String cnt) {
            this.cnt = cnt;
        }

        public String getRate() {
            return rate == null ? "" : rate;
        }

        public void setRate(String rate) {
            this.rate = rate;
        }

        public String getRate_desc() {
            return rate_desc == null ? "" : rate_desc;
        }

        public void setRate_desc(String rate_desc) {
            this.rate_desc = rate_desc;
        }

        public String getSift_title() {
            return sift_title == null ? "" : sift_title;
        }

        public void setSift_title(String sift_title) {
            this.sift_title = sift_title;
        }
    }
}
